#include "UpfModel.h"
#include "TclCommand.h"
#include <map>
#include <string>
#include <vector>
#include <set>
#include <iostream>
#include <algorithm>
using namespace std;

// smc
typedef vector<PwPst*>::iterator pst_iter;
string detect_warning(PwSupplyNet* ground);

// Qin
static vector<PwSupplyPort*> sourcePorts;
static vector<PwSupplyNet*> sourceNets;

static vector<PwSupplyPort*> drivePorts;
static vector<PwSupplyNet*> driveNets; 